#!/bin/sh

mvn clean install -Dmaven.test.skip -P test
scp yyfn-api/target/yyfn-api.war yunwei@118.89.53.121:/apps/softwares/apache-tomcat-8.0.14/webapps

ssh yunwei@118.89.53.121 "ps -ef | grep  'apache-tomcat-8.0.14' | grep -v 'grep' | awk '{print \$2}' | xargs kill -9 ; cd /apps/softwares/apache-tomcat-8.0.14 ;rm -rf  webapps/yyfn-api ;bin/startup.sh ; tail -f logs/catalina.out "

